#ifdef _WIN32

#include "Core\Oatmeal.h"			// standard library include (must be first include)
#include "Core\Internals.h"			// standard include for intenral definitions
#include "IO\Settings.h"			// module to retrieve/set engine settings

////////////////////////////////////////////////////////////////////////////////////////////////////
/////////////////////////////////// LIBRARY ENTRY/EXIT FUNCTIONS ///////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

/*/
/ / bool WINAPI
/ /		DllMain (HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
/ /
/ / PURPOSE:
/ /		Entry and exit point for the engine.
/ /
/ / COMMENTS:
/ /		This is Windows only.
/*/

bool WINAPI
DllMain (HINSTANCE hInstDLL, DWORD fdwReason, LPVOID lpvReserved)
{
	switch(fdwReason)
	{
		case DLL_PROCESS_ATTACH:
		{
			// save the instance parameter for later usage, this is
			// the best and most reliable means of obtaining this value
			GlobalSettings.hEngineInstance = hInstDLL;
			break;
		}

		// not used ///////////////
		// case DLL_PROCESS_DETACH:
		// case DLL_THREAD_ATTACH:
		// case DLL_THREAD_DETACH:
	}

	return true;
}

////////////////////////////////////////////////////////////////////////////////////////////////////
////////////////////////////////////////////////////////////////////////////////////////////////////

#endif // _WIN32